<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <jsp:include page="querybyjob.jsp"/>
    <%@ page import="java.util.*,java.text.*"%>
    <%@ page import="dao.*" %>
    <jsp:useBean id="dao" class="dao.InfoImpl" scope="request"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
.div1{
margin-left:10%;
margin-top:10px;
}
td{
width:120px;
background:#ffcc66 ;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<div class="div1">
	<table >
		<tr><td>员工号</td><td>姓名</td><td>性别</td><td>部门</td><td>岗位</td></tr>
		<%request.setCharacterEncoding("utf-8");
		String job=request.getParameter("job");
		List list=dao.findByJob(job);
		for(int i=0;i<list.size();i++){
		 Info info=(Info)list.get(i);%>
		<tr>
			<td><%=info.getId()%></td>
			<td><%=info.getName()%></td>
			<td><%=info.getSex()%></td>
			<td><%=info.getSection()%></td>
			<td><%=info.getJob()%></td>
		</tr>
		
		<% }%>
	</table>
</div>
</body>
</html>